<template>
    <div id="app">
        <router-link to="/Login" tag="button">登录页面</router-link>
        <router-link to="/Home" tag="button">主页面</router-link>
        <keep-alive includ="My">
            <router-view></router-view>
        </keep-alive>

    </div>
</template>

<script>


export default {
    name: 'App',
    components: {},
    methods:{
        pushShow(){
            this.$router.push({
                name:'My',
                params:{
                    id:123
                },
                query:{
                    name:'zhangsan'

                },
            })
        },
        replaceShow(){
            this.$router.replace({
                name:'My',
                params:{
                    id:123
                },
                query:{
                    name:'zhangsan'

                },
            })
        }
    }
}
</script>

<style>

</style>
